package com.design.pattern.proxy.statical;

/**
 * @author : 翌擎科技
 * @date : 2022/9/20 21:14
 */
public class Proxy implements Subject{

    private RealSubject realSubject;

    public Proxy( RealSubject realSubject){
        this.realSubject=realSubject;
    }

    @Override
    public void request() {
        System.out.println("静态代理增强开始");
        realSubject.request();
        System.out.println("静态代理增强结束");
    }
}
